<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/25
 * Time: 15:19
 */

namespace app\api\Service;


use app\api\library\SecretSys;
use fast\Http;

class WebsocketService
{

    protected $url;

    public function __construct()
    {
        $this->url = SecretSys::WEBSOCKET_HTTP_URL;
    }

    public function message($data)
    {
        Http::post($this->url,$data);
        return true;
    }
}